/*
 * @Author: your name
 * @Date: 2022-02-15 09:30:20
 * @LastEditTime: 2022-02-16 15:40:56
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \web-vue\src\store\index.js
 */
import Vue from 'vue'
import Vuex from 'vuex'
import menus from './modules/menus'

Vue.use(Vuex)

export default new Vuex.Store({
    state:{
        token:''

    },
    mutations:{
        SET_TOKEN:(state, token)=>{
            state.token = token
            localStorage.setItem("token",token)
        },
       
    },
    actions:{},
    modules:{
        menus
    }
})